//
//  FrameworkManager.m
//  MyFramework
//
//  Created by alanzhangg on 2023/6/26.
//

#import "FrameworkManager.h"

@implementation FrameworkManager

+ (void)creatFrameworkFileViewController{
    NSLog(@"nihao");
}

+ (UIImage *)backImage{
    //    NSString * bundleId = @"com.imcore.MyFramework";
    //    NSBundle * bundle = [NSBundle bundleWithIdentifier:bundleId];
    NSString * bundlePath = [[[NSBundle mainBundle] privateFrameworksPath] stringByAppendingPathComponent:@"MyFramework.framework/framework.bundle"];
    NSBundle * bundle = [NSBundle bundleWithPath:bundlePath];
    NSString * path = [bundle pathForResource:@"hello" ofType:@"jpeg"];
    UIImage * image = [UIImage imageWithContentsOfFile:path];
    NSLog(@"%@", image.description);
    
    return image;
}

@end
